package movieBean;

/**
 *
 * @author Rigsby Chi
 */
public class SeatPlan {
    private int numberOfSeats;
    private String[] seat;
    private int house;

    public void setSeat(int seat[]) {
        this.seat = new String[this.numberOfSeats];
        for (int i = 0; i < this.numberOfSeats; i++) {
            switch (seat[i]) {
                case -1:
                    (this.seat)[i] = "unavailableSeat";
                    break;
                case 0:
                    (this.seat)[i] = "availableSeat";
                    break;
                case 1:
                    (this.seat)[i] = "boughtSeat";
                    break;
            }
        }
    }

    public String[] getSeat() {
        return this.seat;
    }

    public void setNumberOfSeat(int numberOfSeats) {
        this.numberOfSeats = numberOfSeats;
    }

    public int getNumberOfSeats() {
        return this.numberOfSeats;
    }
    
    public void setHouse(int house) {
        this.house = house;
    }

    public int getHouse() {
        return this.house;
    }
}
